*****************************
** S-RLS Panel PS2 Survey **
** Label Do File          **                                     
************************************************

clear all
set more off
set maxvar 10000
//ssc install missings


use "${dir}/intermediate_public/panel_ps2_cleaned_deidentified.dta", clear


*****************************LABELING***************************

* label variables

**Section 1: Pre-Interview Information and Consent**

label variable total_duration "Total Duration" 
label variable today "Today"


lab var current_month "Month"

label variable working_time "Hour (24 clock) interview started"
label variable final_call_status_chk "Final Call Status Check"
label variable date "Date"
label variable time "Time"

label variable hh_size_preloaded "Household size in the last round"
note hh_size_preloaded: "Note: If there were 8 people in hh_size_preloaded, then this person would be the 7th person in the old roster index."

label variable q103 "Are you Focus Respondent (Y/N)"
note q103: "q103. Are you Focus Respondent (Y/N)?."

label variable q103_warning "q103 warning"
note q103_warning: "q103. An alternate person can be interviewed only in the event that Focus Respondent cannot be interviewed permanently now or at any time later, in the event that you are unable to meet him, please explain the reason in detail here."

label variable q103_warning_C1 "q103 warning in English"
note q103_warning: "q103. An alternate person can be interviewed only in the event that Focus Respondent cannot be interviewed permanently now or at any time later, in the event that you are unable to meet him, please explain the reason in detail here."

label variable q113 "Consent"

**Section 2: Confirmation of Identity** 

label variable q203_prob "FR gender is different from lists, are you sure FR gender is?"
note q203_prob: "Q203_prob. To interviewer: FR gender is different from the lists, are you sure that FR gender is [q203_label] ?"

label variable q205 "Highest level of education completed"
note q205: "Q205. What is the highest level of education you successfully completed?"

label variable q207 "Is the interviewee alone where they are answering the survey? (Y/N)"
note q207: "Q207. Read: Is the interviewee alone in the room where they are answering the survey?"

**Section 3: Contact Information**

label variable q304 "Is there a phone number to reach you? (Y/N)"
note q304: "Q304. Is there a phone number where I can reach you, even if you do not have your own phone?"

label variable q304_prob "Are you sure there is no phone number to reach you? (Y/N)"
note q304_prob: "Q304. Is there a phone number where I can reach you, even if you do not have your own phone?"

**Section 4: Household Roster**
label variable count_2nd_repeat "Number of new household members"
note count_2nd_repeat: "Number of new household members"

label variable select_head_of_household "Who is the head of the household?"
note select_head_of_household: "Who is the head of the household?"

forv i=1/21 {

 local rgvar "pre_r_int_age_`i'"
 label variable `rgvar' "Previous round: Current age for [member_name_old]"
 note `rgvar': "pre_r_int_age_. Previous Round - HH information. Whta is the current age for [member_name_old] " 
 }
 
 forv i=1/7 {

 local rgvar "pre_r_age_confirm2_`i'"
 label variable `rgvar' "Previous round: Entered hh member age Confirm"
 note `rgvar': "The entered age for [member_name_old] less than his\her age in the previous round, are you sure this age ([pre_r_int_age] years) is correct?" 
 }
  
 forv i=12/13 {

 local rgvar "pre_r_age_confirm2_`i'"
 label variable `rgvar' "Previous round: Entered hh member age Confirm"
 note `rgvar': "The entered age for [member_name_old] less than his\her age in the previous round, are you sure this age ([pre_r_int_age] years) is correct?" 
 }
 
 label variable pre_r_age_confirm2_9 "Previous round: Entered hh member age less than previous round? Confirm"
 note pre_r_age_confirm2_9: "The entered age for [member_name_old] less than his\her age in the previous round, are you sure this age ([pre_r_int_age] years) is correct?" 
 
 label variable pre_r_age_confirm2_15 "Previous round: Entered hh member age less than previous round? Confirm"
 note pre_r_age_confirm2_15: "The entered age for [member_name_old] less than his\her age in the previous round, are you sure this age ([pre_r_int_age] years) is correct?" 
 
  forv i=1/12 {

 local rgvar "pre_r_age_confirm3_`i'"
 label variable `rgvar' "Previous round: Entered hh member age more than 2 years in the previous round. Confirm"
 note `rgvar': "The entered age for [member_name_old] less than his\her age in the previous round, are you sure this age ([pre_r_int_age] years) is correct?" 
 }
 
 
forv n=1/15{
 local rgvar q410_`n'
 label variable `rgvar' "Days attended school (week)"
 note `rgvar': "Q410. Of the last five days school was in session, how many days did hh member attend?"
}

forv n=1/15{
 local rgvar q411_`n'
 label variable `rgvar' "Doctor affordability for hh member"
 note `rgvar': "Q411. If[HH member] needed to see a doctor for a condition like an ear infection, for example, would the household be able to afford their doctor's visit?(1=Yes 2=No 3=DO NOT READ: Don't know)"
}

forv n=1/13{
 local rgvar q412_`n'
 label variable `rgvar' "Has HH member worked in the last 30 days (Y/N)"
 note `rgvar': "Q412. Has [HH member] worked for pay in the last 30 days?"
}

forv n=1/9{
 local rgvar q413_`n'
 label variable `rgvar' "Total hours hh member worked (month)"
 note `rgvar': "Q413. In the last 30 days, how many total hours was [HH member] working"
}

forv n=1/9{
 local rgvar q414_`n'
 label variable `rgvar' "Total income hh member earned (month)"
 note `rgvar': "Q414. In the last 30 days, what was the total income of [HH member]"
}

**Section 5: Employment: Current and History**
label variable q501 "Any work to generate income, even for an hour (Month)"
note q501: "Q501. In the past 30 days did you do any kind of work for pay, business,farming, or other activity to generate income, even if only for one hour?"

label variable q501aii "Have you ever done work for pay to generate income"
note q501aii: "Q501aii. Have you ever done any kind of work for pay, business, farming, or other activity to generate income?"

label variable q501b "Was this work self-employment, informal or formal with a contract?"
note q501b: "q501b. Was this work primarily self-employment,informal employment without a written contract, or formal employment with a written contract?"

label variable q502 "Occupation, most important primary position"
note q502: "q502. In what occupation is/was your primary position? If more than one job, think about the most important position"

label variable q502_other "Other: Occupation, most important primary position"
note q502_other: "q502_other. In what occupation is/was your primary position? If more than one job, think about the most important position"

label variable q502_other_C1 "in English - Other: Occupation, most important primary position"
note q502_other_C1: "q502_other. In what occupation is/was your primary position? If more than one job, think about the most important position"

label variable q503 "Hours worked in a typical week(Month)"
note q503: "q503. Think about the type of tasks you did in all jobs or self-employment over the past 30 days. Some days you may have worked more hours,and some days fewer hours. How many hours did you work in a typical week in the past 30 days? Include all forms of work for pay, self-employment, farming, or other income-generating activity."

label variable q505 "Hours spend actively searching for a job(Week)"
note q505: "q505. During the last 7 days, how many hours did you spend actively searching for jobs, applying for jobs, or in interviews?"

label variable q506 "Cash assistance hh received (Year)"
note q506: "q506. What was the total amount of cash assistance you or members of your household received in the past 12 months? Please estimate if you are unsure. Note: Vouchers (e.g. for food) would be counted here"

label variable q506_conf "No cash assistance hh (Year)"
note q506_conf: "q506_conf. Are you sure you did not receive any assistance (for example, from NGOs or the government) in the last 12 months?"

label variable q507 "In-kind cash assistance (Year)"
note q507: "Q507. What was the monetary value of in-kind assistance you or members of your household received in the past 12 months?"


 **Section 7: Conclusion**
 
 lab var q700b_1   "Terminated early,`i': Temporary stop only –Wishes to continue survey at a later time."
lab var q700b_2  "Terminated early, `i': Tired"
 lab var q700b_3   "Terminated early, `i': Too busy, does not have time"
 lab var q700b_4   "Terminated early, `i': Offended at question"
 lab var q700b_5   "Terminated early, `i': Suspicious of FO / survey intent / NRC"
 lab var q700b_6   "Terminated early, `i': Does not feel like continuing survey"
 lab var q700b__96   "Terminated early, `i': Other"
 

save "${dir}/intermediate_public/panel_ps2_labelled_deidentified.dta", replace
